from django.conf.urls import include, url
from django.contrib import admin
from Puer.apps.product import views as product_views
from Puer.apps.activity import views as activity_views
from Puer.apps.index import views as index_views
from Puer.apps.users import views as user_views
from Puer.apps.cart import views as cart_views
from Puer.apps.orders import views as orders_views
from Puer.apps.business import views as business_views

urlpatterns = [
    # Examples:
    # url(r'^$', 'PuerSuitServer.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    # 商品模块
    url(r'ProductList/$', product_views.get_kind_of_product),
    url(r'ProductDetail/$', product_views.get_product_detail),
    url(r'SellNewProduct/$', product_views.get_new_products),
    url(r'TimeProduct/$', product_views.get_time_limit_products),
    url(r'CheckProduct/$', product_views.product_stock_checked),
    # --------------------------------PC-------------------------------------
    url(r'AddProduct/$', product_views.add_product),  # 普通商品的添加
    # url(r'AddTimeProduct/$', product_views.add_time_product),  # 添加限时商品
    url(r'DeleteTimeProduct/$', product_views.delete_time_product),  # 删除限时商品
    # url(r'AddNewProduct/$', product_views.add_new_product),  # 添加预售商品
    url(r'DeleteNewProduct/$', product_views.delete_open_product),  # 删除预售商品
    url(r'DeleteProduct/$', product_views.delete_product),  # 删除商品
    url(r'ProductDetailShow/$', product_views.get_product_details),  # 商品详情
    # url(r'AddProductNumber/$', product_views.product_number_addition),  # 增加商品数量
    url(r'UseTypeFindProduct/$', product_views.find_product),  # 商品分类查询
    url(r'AllProducts/$', product_views.product_list),  # 商品列表
    url(r'UpdateProduct/$', product_views.update_product_information),  # 修改商品信息
    url(r'DeleteSonProduct/$', product_views.delete_son_product),  # 删除分类下的子商品
    url(r'AddIndexSwiper/$', product_views.add_index_swiper_image),  # 添加首页轮播图
    url(r'ShowIndexSwiper/$', product_views.show_index_swiper_img),  # 展示首页轮播图
    url(r'DeleteIndexSwiper/$', product_views.delete_index_swiper_img),  # 删除首页轮播图
    # 活动模块
    url(r'ShowMoreActivities/$', activity_views.show_more_activities),
    url(r'ActivityDetail/$', activity_views.get_activity_detail),
    url(r'AddActivity/$', activity_views.join_activity),
    # --------------------------------PC-------------------------------------
    url(r'NewActivity/$', activity_views.add_activity),  # 活动新增
    # url(r'AddHost/$', activity_views.add_host),  # 添加主持人
    # url(r'DeleteHost/$', activity_views.delete_host),  # 删除主持人
    # url(r'AddGuest/$', activity_views.add_guest),  # 添加活动嘉宾
    # url(r'DeleteGuest/$', activity_views.delete_guest),  # 删除活动嘉宾
    url(r'EndActivity/$', activity_views.end_activity),  # 活动结束
    url(r'PcShowActivity/$', activity_views.pc_show_activity),  # 活动展示
    url(r'ActivityContent/$', activity_views.pc_activity_detail),  # 查看活动详情
    url(r'ActivityName/$', activity_views.show_activity_name),  # 所有活动名
    url(r'JoinActivityNumber', activity_views.join_activity_num),  # 活动报名人数
    # 首页
    url(r'^index/$', index_views.index),  # 首页
    # --------------------------------PC-------------------------------------
    url(r'^PcIndex/', index_views.pc_index),
    # 用户模块
    url(r'^Login/$', user_views.login),  # 是否vip
    url(r'^ChargePay/$', user_views.charge_pay),  # 充值支付
    url(r'^ChargePayFinish/$', user_views.charge_pay_finish),  # 充值成功
    url(r'^TheWallet/$', user_views.wallet),  # 展示钱包
    url(r'^InviteUser/$', user_views.invite_user),  # 用户邀请
    url(r'^ShowPay/$', user_views.pay_detail),  # 余额明细
    url(r'^ShowAddress/$', user_views.show_address),  # 地址管理
    url(r'^AddAddress/$', user_views.add_address),  # 添加地址
    url(r'^IsDefault/$', user_views.change_default),  # 设为默认
    url(r'^DeleteAddress/$', user_views.delete_address),  # 删除地址
    url(r'^UpdateAddress/$', user_views.update_address),  # 修改地址
    url(r'^AuditInAdvance/$', user_views.auditln_advance),  # 提现审核
    url(r'^ShowAdvance/$', user_views.show_advance),  # 查看提现状态
    url(r'^Shop/$', user_views.shop),  # 门店请求
    url(r'^SendMessage/$', user_views.send_message),  # 发送验证码
    url(r'^VerifyCode/$', user_views.verification_code_verify),  # 手机验证码校验
    url(r'^ConfirmPay/$', user_views.confirm_pay),  # 直接确认支付
    url(r'^CartConfirmOrder/$', user_views.cart_confirm_pay),  # 购物车确认支付
    url(r'^IsAddressDefault/$', orders_views.is_address_default),  # 是否设置地址
    url(r'^WeChatPayPurchaseOfGoods/$', user_views.purchase_of_goods),  # 购买商品，微信支付
    url(r'^ProductsWechatFinish/$', user_views.products_wechat_finish),  # 购买商品微信支付完成
    url(r'^BalanceOfPay/$', user_views.balance_payment),  # 余额支付
    url(r'^Feedback/$', user_views.user_opinion),  # 用户意见反馈
    # --------------------------------PC-------------------------------------
    url(r'^AccountMange/', user_views.mg_log_in_manage),  # 账号管理
    url(r'^Register/', user_views.new_manage),  # 新建账号
    url(r'^LoginManage/', user_views.log_in),  # 用户登录
    url(r'^UpdatePassword/', user_views.modify_user_password),  # 修改密码
    url(r'^DeleteUser/', user_views.del_manage),  # 删除用户
    url(r'^UserVip/', user_views.user_vip),  # 会员记录
    url(r'^ShowRefund/', user_views.show_user_refund),  # 退款展示
    url(r'^RefundFailure/', user_views.refund_failure),  # 退款失败
    url(r'^RefundSuccess/', user_views.refund_success),  # 退款成功
    url(r'^AddStore/', user_views.add_store),  # 添加门店
    url(r'^ShowStores/', user_views.show_stores),  # 展示门店
    url(r'^DeleteStore/', user_views.delete_store),  # 删除门店
    url(r'^StoreDetail/', user_views.store_detail),  # 门店详情
    url(r'^ShowOpinion/', user_views.show_opinion),  # 意见展示
    url(r'^DealOpinion/', user_views.deal_opinion),  # 处理意见

    # 购物车
    url(r'^AddCart/$', cart_views.add_cart),  # 添加购物车
    url(r'^Wardorbe/$', cart_views.show_cart),  # 展示购物车
    url(r'^DeleteCart/$', cart_views.delete_cart),  # 删除购物车
    # 订单模块
    url(r'^OrderCenter/$', orders_views.all_orders),  # 订单中心
    url(r'^OrderSendInfo/$', orders_views.order_send_info),  # 物流信息
    url(r'^ConfirmReceipt/$', orders_views.confirm_receipt),  # 确认收货
    url(r'^PayProducts/$', orders_views.pay_order),  # 直接购买
    url(r'^PayFinish/$', orders_views.pay_finish),  # 微信支付商品支付成功
    url(r'^CartPayFinish/$', orders_views.pay_cart),  # 购物车直接支付成功
    # ----------------------------PC----------------------------------
    url(r'^GetOrderInfo/$', orders_views.get_orders_info),  # 获取订单信息
    url(r'^ShowOrderDetail/$', orders_views.get_orders_details),  # 订单详情
    # url(r'^OrdersReceiver/$', orders_views.get_orders_receiver),  # 订单收货人信息
    # url(r'^UpdateOrdersReceiver/$', orders_views.update_orders_receiver),  # 更新收货人信息
    url(r'^OrderDelivered/$', orders_views.orders_to_be_delivered),  # 订单发货

    # 加盟/团购
    url(r'^JoinUs/$', business_views.join_us),  # 加盟
    url(r'^CompanyGroup/$', business_views.company_group),
    # ----------------------------PC----------------------------------
    url('^CompanyGroupInfo/', business_views.get_company_buy_info),  # 团购列表
    url('^DealGroup/', business_views.deal_group_buy),  # 处理团购
    url('^JoinList/', business_views.get_joining_information),  # 加盟列表
    url('^DealJoin/', business_views.deal_join),  # 处理加盟
]
